//
//  PickProjectTableViewCell.swift
//  Wmsmobile
//
//  Created by Nick xu on 16/8/19.
//  Copyright © 2016年 www.hd123.com. All rights reserved.
//

import UIKit

class ChkBinInfoTableviewCell: UITableViewCell {
    
    var info:[String : String]?{
        didSet{
            label1.text = info!["收货规格"]
            label1.textColor = UIColor.hexStringToUIColor("#666666")
            label1.font = UIFont.systemFont(ofSize: (WMSFonts["founctionCell"]!)[userInfo!.fontLevel.rawValue])
            label2.text = info!["长宽高"]
            label2.textColor = UIColor.hexStringToUIColor("#666666")
            label2.font = UIFont.systemFont(ofSize: (WMSFonts["founctionCell"]!)[userInfo!.fontLevel.rawValue])
            label3.text = info!["重量"]
            label3.textColor = UIColor.hexStringToUIColor("#666666")
            label3.font = UIFont.systemFont(ofSize: (WMSFonts["founctionCell"]!)[userInfo!.fontLevel.rawValue])
        }
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.contentView.addSubview(label1)
        self.contentView.addSubview(label2)
        self.contentView.addSubview(label3)
        
        label1.snp.makeConstraints { (make) in
            make.left.equalTo(self.contentView).offset(18)
            make.centerY.equalTo(self.contentView)
        }
        label2.snp.makeConstraints { (make) in
            make.centerY.equalTo(self.contentView)
            make.centerX.equalTo(self.contentView)
        }
        label3.snp.makeConstraints { (make) in
            make.centerY.equalTo(self.contentView)
            make.trailing.equalTo(self.contentView).offset(-28)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    lazy fileprivate var label1:UILabel = {
        let label = UILabel()
        return label
    }()
    lazy fileprivate var label2:UILabel = {
        let label = UILabel()
        return label
    }()
    lazy fileprivate var label3:UILabel = {
        let label = UILabel()
        return label
    }()
    
    
    
}
